<template>
  <van-row>
    <van-col span="24">
      <van-swipe :autoplay="3000">
        <van-swipe-item v-for="(image, index) in images" :key="index">
          <img v-lazy="image" :src="'http://localhost:8081/' + image" style="width: 100%;height: 180px" />
        </van-swipe-item>
      </van-swipe>
    </van-col>
  </van-row>
</template>

<script>
import axios from "axios"

export default {
  data() {
    return {
      images: [
        
      ],
    };
  },
  created: function() {
    let _this = this;

    axios.get("/slider/slider.json").then(function (resp){
      _this.images = resp.data
    });
  }
};
</script>